package com.firexxx.common.errors;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by mmxu6 on 2019-09-03.
 */
public enum BaseErrors implements BusinessError {
    UNKNOWN_ERROR("9999", "未知的错误", ErrorType.BUSINESS),
    INVALID_PARAM("0001", "无效的参数", ErrorType.ADAPTER),
    MLV_ERROR("1101", "mlv引擎出错", ErrorType.BUSINESS),
    CLUSTER_ERROR("1201", "cluster引擎出错", ErrorType.BUSINESS),
    AUDIO_ERROR("1301", "mlv引擎出错", ErrorType.BUSINESS);

    BaseErrors(String code, String message, ErrorType errorType) {
        this.code = code;
        this.message = message;
        this.errorType = errorType;
    }

    @Getter
    @Setter
    private String code;

    @Getter
    @Setter
    private String message;

    @Getter
    @Setter
    private ErrorType errorType;
}
